package com.itheima.service;

import com.itheima.domain.User;

import java.util.List;

public interface UserService {
    //查询所有用户信息
    public List<User> selectAll() throws Exception;

    //根据id查询
    public User selectById(Integer uid) throws Exception;

    //添加用户信息
    public Integer insertUser(User user) throws Exception;

    //修改用户信息
    public Integer updateUser(User user) throws Exception;

    //删除用户信息
    public Integer deleteUser(Integer uid) throws Exception;
}
